<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of construction
 *
 * @author root
 */
class Annex extends AppModel {

    var $name = "Annex";
    var $actsAs = array('Logable' => array(
            'userModel' => 'User',
            'userKey' => 'user_id',
            'change' => 'full', // options are 'list' or 'full'
            'description_ids' => TRUE // options are TRUE or FALSE
            ));
    var $belongsTo = array(
        'Property' => array(
            'model' => 'Property'
        ),
    );
    var $validate = array(
        'area' => array(
            'numeric' => array(
                'rule' => 'numeric',
                'message' => 'Solo valores numericos (decimales separados por punto)'
            ),
        ),
        'valor_adoptado' => array(
            'numeric' => array(
                'rule' => 'numeric',
                'message' => 'Solo valores numericos (decimales separados por punto)'
            ),
        ),
        'descripcion' => array(
            'notEmpty' => array(
                'rule' => 'notEmpty',
                'message' => 'Este campo no puede estar vacio'
            ),
        ),
    );

}

?>
